package com.douguo.recipe.network;

import java.lang.ref.SoftReference;

import android.graphics.Bitmap;
import android.os.Handler;
import android.os.Message;

public class GetCachePhoto {
	public static void getCachePhoto(final int pos,final String picUrl,final Handler handler) {
		new Thread(){
			public void run(){
			Bitmap bm = LoadCachePhoto.getPhoto(picUrl);
			handler.sendMessage(Message.obtain(handler,
					Constant.GET_PHOTO, pos, 0, new SoftReference<Bitmap>(bm)));
		}
		}.start();
	}
}
